package controller;

import java.awt.event.AdjustmentEvent;
import java.awt.event.AdjustmentListener;
import apps.AppReg;

public class ScrollListener implements AdjustmentListener {

    @Override
    public void adjustmentValueChanged(AdjustmentEvent arg0) {

	// For some reason this event fires before the program can even start
	// and causes exceptions,
	// so we check if its instantiated first
	if (AppReg.getFrame() != null)
	    AppReg.getFrame().repaint();
    }
}
